package com.myh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myh.common.utils.PageUtils;
import com.myh.gulimall.product.entity.CategoryEntity;
import com.myh.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-01 11:42:39
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> list);

    /**
     * 找到catelogId的完整路径
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);
    String findCatelogPathName(Long catelogId);

    List<CategoryEntity> getLevelOneCategorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

